using System;
using System.Windows.Forms;
using Deployment.CustomTasks.Controls;

namespace Deployment.CustomTasks
{
	public partial class CheckBoxControl : IUserControl
	{
		private string id;
		private string title;


		public string Id
		{
			get { return id; }
			set { id = value; }
		}

		public string Title
		{
			get { return title; }
			set
			{
				this.checkBox.Text = value;
				title = value;
			}
		}

		public event EventHandler<UserControlChangedEvent> DepencencyChanged;

		public string Value
		{
			get { return checkBox.Checked.ToString().ToLower(); }
		}

		public Control GetControl()
		{
			this.checkBox.Text = Title;
			
			return this;
		}
	}
}